import { Controller, Get, Render, UseGuards, Query } from '@nestjs/common';
import { JwtHttpGuard } from '../auth/jwt-http.guard';

@Controller()
export class RoleCategoryViewController {
  @UseGuards(JwtHttpGuard)
  @Get('role-category-permissions')
  @Render('role-category-permissions.html')
  getRoleCategoryPermissionsPage(@Query('id') id: string) {
    return { roleId: id };
  }
}